import request from '@/utils/request'

const smsApi = {
 
  

  SmsCurtailList: '/admin/smsCurtail/list',
  SmsCurtailAdd: '/admin/smsCurtail/add',
  SmsCurtailUpdate: '/admin/smsCurtail/update',


 

  
  
  

  SmsBalanceLogList: '/admin/smsBalanceLog/list',
  UserUpdateSmsBalance: '/admin/user/updateSmsBalance',


  SmsSend: '/web/sms/send',       // 发送
  SmsList: '/web/sms/list',       // 记录

  // 短信记录
  MsgLogList: '/web/msgLog/list', 
  
  // 短信模板
  PlatformTemplateAdd: '/web/template/add',
  PlatformTemplateList: '/web/template/list',
  PlatformTemplateUpdate: '/web/template/update',


  // 签名
  SignatureAdd: '/web/signature/add',
  SignatureList: '/web/signature/list',
  SignatureUpdate: '/web/signature/update',



  SmsCallbackLogList: '/web/smsCallbackLog/info',
  

  
}

/**
 * @param parameter
 * @returns {*}
 */
export function getSmsList (parameter) {
  return request({
    url: smsApi.SmsList,
    method: 'post',
    data: parameter,
  })
}

export function getSmsCurtailList (parameter) {
  return request({
    url: smsApi.SmsCurtailList,
    method: 'post',
    data: parameter,
  })
}
export function getSmsCurtailAdd (parameter) {
  return request({
    url: smsApi.SmsCurtailAdd,
    method: 'post',
    data: parameter,
  })
}
export function getSmsCurtailUpdate (parameter) {
  return request({
    url: smsApi.SmsCurtailUpdate,
    method: 'post',
    data: parameter,
  })
}
export function getSmsBalanceLogList (parameter) {
  return request({
    url: smsApi.SmsBalanceLogList,
    method: 'post',
    data: parameter,
  })
}
export function getUserUpdateSmsBalance (parameter) {
  return request({
    url: smsApi.UserUpdateSmsBalance,
    method: 'post',
    data: parameter,
  })
}

export function smsSendApi (parameter) {
  return request({
    url: smsApi.SmsSend,
    method: 'post',
    data: parameter,
  })
}

// 模板
export function platformTemplateAdd (parameter) {
  return request({
    url: smsApi.PlatformTemplateAdd,
    method: 'post',
    data: parameter,
  })
}
export function getPlatformTemplateList (parameter) {
  return request({
    url: smsApi.PlatformTemplateList,
    method: 'post',
    data: parameter,
  })
}

export function platformTemplateUpdate (parameter) {
  return request({
    url: smsApi.PlatformTemplateUpdate,
    method: 'post',
    data: parameter,
  })
}
// 记录
export function msgLogList (parameter) {
  return request({
    url: smsApi.MsgLogList,
    method: 'post',
    data: parameter,
  })
}


export function signatureAdd (parameter) {
  return request({
    url: smsApi.SignatureAdd,
    method: 'post',
    data: parameter,
  })
}
export function signatureList (parameter) {
  return request({
    url: smsApi.SignatureList,
    method: 'post',
    data: parameter,
  })
}

export function signatureUpdate (parameter) {
  return request({
    url: smsApi.SignatureUpdate,
    method: 'post',
    data: parameter,
  })
}

export function smsCallbackLogList (parameter) {
  return request({
    url: smsApi.SmsCallbackLogList,
    method: 'post',
    data: parameter,
  })
}

